home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 1138 / source.zip / FRMFOLDR.FRM < prev    next >
Text File  |  1995-01-18  |  3KB  |  112 lines

  1. VERSION 2.00
  2. Begin Form FRMFOLDR 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Create New Folder"
  6.    ClientHeight    =   2640
  7.    ClientLeft      =   2820
  8.    ClientTop       =   3048
  9.    ClientWidth     =   4848
  10.    ClipControls    =   0   'False
  11.    Height          =   3060
  12.    Left            =   2772
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   2640
  17.    ScaleWidth      =   4848
  18.    Top             =   2676
  19.    Width           =   4944
  20.    Begin TextBox txtfile 
  21.       Height          =   372
  22.       Left            =   1920
  23.       TabIndex        =   5
  24.       Top             =   240
  25.       Width           =   2052
  26.    End
  27.    Begin TextBox txtdesc 
  28.       Height          =   372
  29.       Left            =   1920
  30.       TabIndex        =   2
  31.       Top             =   840
  32.       Width           =   2052
  33.    End
  34.    Begin CommandButton Command2 
  35.       Caption         =   "&Cancel"
  36.       Height          =   492
  37.       Left            =   2640
  38.       TabIndex        =   1
  39.       Top             =   1920
  40.       Width           =   972
  41.    End
  42.    Begin CommandButton btnok 
  43.       Caption         =   "&OK"
  44.       Default         =   -1  'True
  45.       Enabled         =   0   'False
  46.       Height          =   492
  47.       Left            =   1320
  48.       TabIndex        =   0
  49.       Top             =   1920
  50.       Width           =   972
  51.    End
  52.    Begin Label Label2 
  53.       BackColor       =   &H00C0C0C0&
  54.       Caption         =   "Description"
  55.       Height          =   492
  56.       Left            =   840
  57.       TabIndex        =   4
  58.       Top             =   840
  59.       Width           =   972
  60.    End
  61.    Begin Label Label1 
  62.       BackColor       =   &H00C0C0C0&
  63.       Caption         =   "Filename"
  64.       Height          =   492
  65.       Left            =   840
  66.       TabIndex        =   3
  67.       Top             =   240
  68.       Width           =   972
  69.    End
  70. End
  71. Option Explicit
  72.  
  73. Sub btnok_Click ()
  74.  
  75.  
  76.  
  77.     Unload frmfoldr
  78. End Sub
  79.  
  80. Sub chkfields ()
  81.     If Len(txtfile) > 0 And Len(txtdesc) > 0 Then btnok.Enabled = True Else btnok.Enabled = False
  82. End Sub
  83.  
  84. Sub Command1_Click ()
  85.  
  86.  
  87.     Unload frmfoldr
  88. End Sub
  89.  
  90. Sub Command2_Click ()
  91.     Unload frmfoldr
  92. End Sub
  93.  
  94. Sub Form_Load ()
  95.     'Center it
  96.     Left = (screen.Width - Width) / 2
  97.     Top = (screen.Height - Height) / 2
  98. End Sub
  99.  
  100. Sub Form_Paint ()
  101.     txtfile.SetFocus
  102. End Sub
  103.  
  104. Sub txtdesc_Change ()
  105.     Call chkfields
  106. End Sub
  107.  
  108. Sub txtfile_Change ()
  109.     Call chkfields
  110. End Sub
  111.  
  112.